class Topic < ActiveRecord::Base
    attr_accessible :name, :last_poster_id, :last_post_at, :forum_id, :nombre_autor
  belongs_to :forum
  has_many :posts, :dependent => :destroy
  
  validates_length_of :name, :in => 1..255
  validates_length_of :nombre_autor, :in => 1..255
end
